<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupSetFunction</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	text-decoration: underline;
}
</style>
</head>
<body>

<h2>IupSetFunction</h2>
<p>Associates a function to an action.</p>
<p>This function is now deprecated. The applications should use <b>IupSetCallback</b> instead.</p>
<h3>
Parameters/Return</h3>
<pre>Icallback IupSetFunction(const char *<strong>name</strong>, Icallback <strong>func</strong>); [in C]
[There is no equivalent in Lua]</pre>
<p><b>name</b>: name of an action.<br>
<b>func</b>: address of a C function. If NULL removes the association.</p>
<p><span class="style1">Returns:</span> the address of the previous function 
  associated to the action.</p>
<h3>See Also</h3>
<p><a href="iupgetfunction.html">IupGetFunction</a>,
  <a href="../call/iup_default_action.html">DEFAULT_ACTION</a>,
  &nbsp;<a href="IupSetCallback.html">IupSetCallback</a>,&nbsp;&nbsp; </p>

</body>

</html>
